Density map and scale bar problems

4167
13
08-05-2014 09:06 AM
MikeStrouts
New Contributor

     So, I'm trying to create a kernel density map with some point data I geocoded from some FARS tables on vehicle accidents around the DC beltway area but I'm having trouble getting the map units and scale bar to work at the same time.  I first tried leaving the shapefile as it was originally projected in the GCS_North_American_1983 CRS but I couldn't get the map units in the kernel densisty dialogue box to show anything in km, m, miles, etc.  It just showed up as map_units and I couldn't change anything.  Then I tried defining the projection as maryland state plane, which let me use the correct map units of meter that I wanted but when I went to put a scale bar in the main map the numbers were way off. It was showing the whole area of DC as like .0005 miles or something crazy like that?  Then I tried using the project tool to see if that would change anything but the scale bar was still weird. What am I doing wrong?

0 Kudos
13 Replies
IanMurray
Frequent Contributor

Hi Mike,

It sounds like you need to change the projection of your dataframe or your data frame units, not that of your data.  If you shapefile comes projected, then define projection would mess up its location and scale, define projection is only to be used when you have you have an unknown or incorrect coordinate system defined.  If you need to project your data in a new projection, use the Project Tool.

Your dataframe coordinate system and map units are defined by the first layer you add to your map, in this case GCS_North_American_1983 CRS from your shapefile, which the GCS_North_American_1983 GCS using degrees as its angular unit, hence your map unit being degrees.  Try changing your dataframe coordinate system to one that uses feet as a unit., by going to View > Dataframe Properties> Coordinate Systems, Maryland state plane does use feet so that should work fine.  You can check your map units under Data frame Properties > General tab, and can also change what the map display shows for units there.

I would use define projection to put your data back in the correct projection, then change your dataframe coordinate system to Maryland State PLane.  THere is no need to reproject the data into Maryland State Plane unless you want to, since ArcGIS projects data in a different coordinate system than that of the data frame on the fly, so it does it for you for display purposes.

I hope this helps

Dan Patterson‌, Melita Kennedy‌, got any other good advice for Mike here?

MikeStrouts
New Contributor

Hi Ian,

     I tried doing that but it didn't work.  My scale bar still read .0005 miles for the width of Virginia. Would having my shapefiles/feature classes in a geodatabase be part of the problem?  I did eventually get something to work but only after I exported one of my feature classes to a folder in explorer and reprojected it to NAD_1983_HARN_StatePlane_Maryland_FIPS_1900_Feet.  When I made a new arcmap document and set it as the first layer everything was fine.

0 Kudos
IanMurray
Frequent Contributor

Did you define projection of your data back to your original projection of GCS_North_American_1983 CRS, then change the dataframe projection to NAD_1983_HARN_StatePlane_Maryland_FIPS_1900_Feet?

The reason what you did worked is after you projected the data into a new projection and added it to a new map document, the map document automatically set to that coordinate system and projection, which happened to have a units of feet, which is what you needed.  Being within a geodatabase should have had nothing to do with it.

0 Kudos
MikeStrouts
New Contributor

I just tried that and it got my scale bar working like normal again but now I can't change my area units when I try to do a kernel density analysis.

0 Kudos
IanMurray
Frequent Contributor

Ah, now this is where Dan gets to say I told you so.  To be able to change your units with kernal density, I believe your data would have to be in the same projection as your data frame, otherwise it can't convert the units correctly(grayed out for me picking a layer using a different projection that dataframe, Timothy Hales you should have someone mention that in the help for that tool if it is true).  Try using the project tool to put your data into NAD_1983_HARN_StatePlane_Maryland_FIPS_1900_Feet, and it should let you pick units.

Oddly it worked out just making a new map document was the simpler option once you knew that you shouldn't use define projection in that manner, since that way the dataframe and layer had same projection.

Please let me know if that works for you

0 Kudos
TimothyHales
Esri Notable Contributor
0 Kudos
MikeStrouts
New Contributor

Yeah, that worked.  Thanks for the help. But now I'm having problems getting a couple of my other shapefiles to line up with my density shapefile.  I probably should have mentioned this earlier but these are the shapefiles I'm working with at the moment:

- geocoded point density

- US States polygon

- roads line

- another roads line file

I just reprojected my states, roads and other roads files to match up with my point density file but the roads files don't show up when I add them to my map.  I double checked and everything has the same Maryland HARN CRS now, even the data frame but for some reason these two won't line up.

Ugh! it's been one step forward two steps back with this thing all day.

0 Kudos
IanMurray
Frequent Contributor

Some layers only show at certain zooms, so I would check to see if your roads show at all zooms or between a minimum/maximum range.  One easy way to see the extent of a layer(and make sure its visible), is to right click on it in the table of contents and select either zoom to make visible(if it only displays at certain ranges), or zoom to layer(if you get zoomed way out, use the horizontal arrows for previous/next extent to get back to your old zoom and extent).

What is your source for your road data?

0 Kudos
MikeStrouts
New Contributor

I got the road shapefile from the US census website.  It's the national file for primary roads.

I also got the states file from the same place and managed to get these two to line up.

The other roads file I got was from the government's national atlas website here: Global Map Data Download‌ under

roads-global map, the shapefile.  I checked the metadata but it didn't leave me much to go on.

0 Kudos